import { createRouter, createWebHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/basic-table'
  },
  {
    path: '/basic-table',
    name: 'BasicTable',
    component: () => import('./views/BasicTable.vue'),
    meta: {
      title: '基础表格'
    }
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 